﻿using Blazored.LocalStorage;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BootstrapBlazorApp.Shared.Services
{
    /// <summary>
    /// 全局静态类
    /// </summary>
    public static class Application
    {
        public static IServiceProvider Instance { get; set; }

        public static string wwwrootPath { get; set; }

        public static IConfiguration Configuration => Instance.GetService<IConfiguration>();

        //public static ILocalStorageService localStorageService => Instance.GetService<ILocalStorageService>();
    }
}
